import http from '../utils/request'
import { IUserData, IResponseData } from '@interface/user'
// 获取个人信息
export const GetuserX = async (): Promise<IUserData> => {
  return await http.get('/personal/getInfo')
}
// 获取路由
export const getmun = (rolePerm: string): Promise<IResponseData> => {
  return http.get(`/personal/getRouters/${rolePerm}`)
}
// 用户信息
export interface IUserInfo {
  id: string;
  username: string;
  realName: string;
  userType: number;
  email: string;
  phone: string;
  gender: number;
  avatar: string;
  enabled: number;
  delFlag: number;
  remark: string | null;
}